package com.foreknow.demo3;

public class MethodDemo {
    public static void print(){
        System.out.println("你好");
    }
    public static void print(int a,int b){
        System.out.println(a+b);
    }
    public static int sum(int a,int b){
        return a+b;
    }
    public static String name(String name){
        return name;
    }
    public static int[] arr(int[] array){
        for (int i = 0;i<array.length;i++){
            System.out.print(array[i]+"\t");
        }
        return array;
    }
    public static void main(String[] args) {
        print();
        print(3,5);
        System.out.println(sum(3,5));
        System.out.println(name("李榜怀"));
        int[] array = {1,3,4,5,6,7,8};
        arr(array);
    }
}
